<?php
/**
 * Created by PhpStorm.
 * User: tsy
 * Date: 2016/9/8
 * Time: 15:52
 */

namespace Admin\Controller\Common;
use Think\Controller;

class BaseController extends Controller{
    public function __construct(){
        parent::__construct();
        if(!isset($_SESSION['user_id'])){
//            redirect('../../Admin/login/login', 0, '页面跳转中...');
            echo "<script>window.parent.location.href='../../Admin/login/login'</script>";
        }
    }

    public function error(){
        echo "错误页面";
    }
}